package com.wclass.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 课程分类
 * </p>
 *
 * @author 张浩高
 * @since 2018-12-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("course_type")
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("serial")
public class CourseType extends SuperEntity<CourseType> {


    /**
     * 是否删除 0：有效，1：禁用
     */
    @JSONField(serialize = false)
    @TableLogic
    private Integer state = 0;
    /**
     * 类型名称
     */

    private String name;
    /**
     * 上级id
     */
    @TableField("p_id")
    private Long pId;

    @TableField(exist = false)
    private List<CourseType> list;


}
